package com.zxl.soft.generator.test.service;

import com.zxl.soft.generator.test.entity.ChineseWord;
import com.zxl.soft.generator.common.service.BaseService;
import com.zxl.soft.generator.test.param.ChineseWordQueryParam;
import com.zxl.soft.generator.test.vo.ChineseWordQueryVo;
import com.zxl.soft.generator.common.vo.Paging;
import com.zxl.soft.generator.test.param.ChineseWordQueryNonePageParam;


import java.io.Serializable;
import java.util.List;

/**
 * <pre>
 *  服务类
 * </pre>
 *
 * @author zhaoxl
 * @since 2021-08-12
 */
public interface ChineseWordService extends BaseService<ChineseWord> {

    /**
     * 保存
     *
     * @param chineseWord
     * @return
     * @throws Exception
     */
    boolean saveChineseWord(ChineseWord chineseWord) throws Exception;

    /**
     * 修改
     *
     * @param chineseWord
     * @return
     * @throws Exception
     */
    boolean updateChineseWord(ChineseWord chineseWord) throws Exception;

    /**
     * 删除
     *
     * @param id
     * @return
     * @throws Exception
     */
    boolean deleteChineseWord(Long id) throws Exception;

    /**
     * 根据ID获取查询对象
     *
     * @param id
     * @return
     * @throws Exception
     */
    ChineseWordQueryVo getChineseWordById(Serializable id) throws Exception;

    /**
     * 获取分页对象
     *
     * @param chineseWordQueryParam
     * @return
     * @throws Exception
     */
    Paging<ChineseWordQueryVo> getChineseWordPageList(ChineseWordQueryParam chineseWordQueryParam) throws Exception;


    /**
    * 获取集合对象
    *
    * @param chineseWordQueryNonePageParam
    * @return
    * @throws Exception
    */
    List<ChineseWordQueryVo> getChineseWordList(ChineseWordQueryNonePageParam chineseWordQueryNonePageParam) throws Exception;

}
